home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / graphics / tiff / libtiff / Makefile.apollo < prev    next >
Makefile  |  1992-02-18  |  5KB  |  172 lines

  1. #    $Header: /usr/people/sam/tiff/libtiff/RCS/Makefile.apollo,v 1.26 92/02/19 14:25:25 sam Exp $
  2. #
  3. # Tag Image File Format Library
  4. #
  5. # Copyright (c) 1988, 1989, 1990, 1991, 1992 Sam Leffler
  6. # Copyright (c) 1991, 1992 Silicon Graphics, Inc.
  7. # Permission to use, copy, modify, distribute, and sell this software and 
  8. # its documentation for any purpose is hereby granted without fee, provided
  9. # that (i) the above copyright notices and this permission notice appear in
  10. # all copies of the software and related documentation, and (ii) the names of
  11. # Sam Leffler and Silicon Graphics may not be used in any advertising or
  12. # publicity relating to the software without the specific, prior written
  13. # permission of Stanford and Silicon Graphics.
  14. # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
  15. # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
  16. # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
  17. # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
  18. # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
  19. # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  20. # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
  21. # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
  22. # OF THIS SOFTWARE.
  23. #
  24. # the library will be installed in DESTDIR/lib and the included files in DESTDIR/include
  25. DESTDIR=/progs/bit2bit/tiff
  26. #
  27. AR=    /bin/ar
  28. RANLIB=    /usr/bin/ranlib
  29. INSTALL= /usr/bin/install
  30. NULL=
  31.  
  32. IPATH=    -I.
  33. #
  34. # Library-wide configuration defines:
  35. #    MMAP_SUPPORT    add support for memory mapping read-only files
  36. #    COLORIMETRY_SUPPORT add support for 6.0 colorimetry tags
  37. #    JPEG_SUPPORT    add support for 6.0 JPEG tags & JPEG algorithms
  38. #    YCBCR_SUPPORT    add support for 6.0 YCbCr tags
  39. #    CMYK_SUPPORT    add support for 6.0 CMYK tags
  40. #
  41. # Compression configuration defines:
  42. #    CCITT_SUPPORT    add support for CCITT Group 3 & 4 algorithms
  43. #    PACKBITS_SUPPORT    add support for Macintosh PackBits algorithm
  44. #    LZW_SUPPORT    add support for LZW algorithm
  45. #    THUNDER_SUPPORT    add support for ThunderScan 4-bit RLE algorithm
  46. #    NEXT_SUPPORT    add support for NeXT 2-bit RLE algorithm
  47. #    JPEG_SUPPORT    add support for JPEG DCT algorithm
  48. #
  49. # Note that if you change the library-wide configuration, you'll
  50. # need to manual force a full rebuild.  Changing the configuration
  51. # of which compression algorithms are included in the library is
  52. # automatically handled (i.e. tif_compress.o has a dependency on
  53. # the Makefile).
  54. #
  55. CONF_COMPRESSION=\
  56.     -DPACKBITS_SUPPORT \
  57.     -DLZW_SUPPORT \
  58.     -DCCITT_SUPPORT \
  59.     -DTHUNDER_SUPPORT  \
  60.     -DNEXT_SUPPORT  \
  61.     ${NULL}
  62. CONF_LIBRARY=\
  63.     -DUSE_VARARGS=1 \
  64.     -DUSE_PROTOTYPES=0 \
  65.     -DHAVE_IEEEFP=1 \
  66.     -DCOLORIMETRY_SUPPORT \
  67.     -DYCBCR_SUPPORT \
  68.     ${NULL}
  69. CFLAGS=     -O -A nansi ${IPATH} ${CONF_LIBRARY}
  70. #
  71. INCS=    tiff.h tiffio.h
  72. SRCS=    tif_fax3.c \
  73.     tif_fax4.c \
  74.     tif_aux.c \
  75.     tif_ccittrle.c \
  76.     tif_close.c \
  77.     tif_compat.c \
  78.     tif_compress.c \
  79.     tif_dir.c \
  80.     tif_dirinfo.c \
  81.     tif_dirread.c \
  82.     tif_dirwrite.c \
  83.     tif_dumpmode.c \
  84.     tif_error.c \
  85.     tif_flush.c \
  86.     tif_getimage.c \
  87.     tif_jpeg.c \
  88.     tif_lzw.c \
  89.     tif_next.c \
  90.     tif_open.c \
  91.     tif_packbits.c \
  92.     tif_print.c \
  93.     tif_read.c \
  94.     tif_swab.c \
  95.     tif_strip.c \
  96.     tif_thunder.c \
  97.     tif_tile.c \
  98.     tif_version.c \
  99.     tif_warning.c \
  100.     tif_write.c \
  101.     ${NULL}
  102. OBJS=    tif_fax3.o \
  103.     tif_fax4.o \
  104.     tif_aux.o \
  105.     tif_ccittrle.o \
  106.     tif_close.o \
  107.     tif_compat.o \
  108.     tif_compress.o \
  109.     tif_dir.o \
  110.     tif_dirinfo.o \
  111.     tif_dirread.o \
  112.     tif_dirwrite.o \
  113.     tif_dumpmode.o \
  114.     tif_error.o \
  115.     tif_flush.o \
  116.     tif_getimage.o \
  117.     tif_jpeg.o \
  118.     tif_lzw.o \
  119.     tif_next.o \
  120.     tif_open.o \
  121.     tif_packbits.o \
  122.     tif_print.o \
  123.     tif_read.o \
  124.     tif_swab.o \
  125.     tif_strip.o \
  126.     tif_thunder.o \
  127.     tif_tile.o \
  128.     tif_version.o \
  129.     tif_warning.o \
  130.     tif_write.o \
  131.     ${NULL}
  132. ALL=    libtiff.a
  133.  
  134. all:     ${ALL}
  135.  
  136. ${ALL}:    ${OBJS}
  137.     ${AR} rc libtiff.a $?
  138.     ${RANLIB} libtiff.a
  139.  
  140. ${OBJS}: tiffio.h tiff.h tiffcompat.h tiffioP.h
  141. tif_compress.o: tif_compress.c Makefile
  142.     ${CC} -c ${CFLAGS} ${CONF_COMPRESSION} tif_compress.c
  143. tif_fax3.o: tif_fax3.c g3states.h t4.h tif_fax3.h
  144.  
  145. g3states.h: mkg3states.c t4.h
  146.     ${CC} -o mkg3states ${CFLAGS} mkg3states.c
  147.     ./mkg3states > g3states.h
  148.  
  149. install: all installh
  150.     @-mkdir $(DESTDIR)/lib
  151.     -for i in ${ALL}; do \
  152.         ${INSTALL} -c -m 644 $$i ${DESTDIR}/lib/$$i; \
  153.         ${RANLIB} ${DESTDIR}/lib/$$i; \
  154.     done
  155.  
  156. installh: ${INCS}
  157.     @-mkdir $(DESTDIR)/include
  158.     -for i in ${INCS}; do \
  159.         h=`basename $$i`; \
  160.         cmp -s $$i ${DESTDIR}/include/$$h || \
  161.             ${INSTALL} -c -m 444 $$i ${DESTDIR}/include/$$h; \
  162.     done
  163.  
  164. clean:
  165.     rm -f ${ALL} ${OBJS} core a.out mkg3states g3states.h
  166.  
  167. tags:    ${SRCS}
  168.     ${CTAGS} ${SRCS}
  169.